\section{DAO.newsinfoDao类参考}
\label{class_d_a_o_1_1newsinfo_dao}\index{DAO::newsinfoDao@{DAO::newsinfoDao}}


DAO.newsinfoDao合作图：
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=174pt]{class_d_a_o_1_1newsinfo_dao__coll__graph}
\end{center}
\end{figure}
\subsection*{公有成员}
\begin{DoxyCompactItemize}
\item 
IList$<$ {\bf newsInfo} $>$ {\bf FindAllByPage\_\-newsinfo} (string start, string limit, string conditions)
\begin{DoxyCompactList}\small\item\em 根据条件查找相应记录，并实现分页 \item\end{DoxyCompactList}\item 
string {\bf GetCount\_\-newsinfo} (string conditions)
\begin{DoxyCompactList}\small\item\em 查找符合条件记录的总条数，共分页使用 \item\end{DoxyCompactList}\item 
IList$<$ {\bf newsInfo} $>$ {\bf FindNewsinfoByClassify} (string classify)
\begin{DoxyCompactList}\small\item\em 根据类别查找出前6条记录，在首页桌面显示 \item\end{DoxyCompactList}\item 
{\bf newsInfo} {\bf FindById\_\-newsinfo} (int id)
\begin{DoxyCompactList}\small\item\em 根据id查找相应的一条记录 \item\end{DoxyCompactList}\item 
bool {\bf Add\_\-newsinfo} ({\bf newsInfo} newsinfo)
\begin{DoxyCompactList}\small\item\em 添加新纪录 \item\end{DoxyCompactList}\item 
bool {\bf Update\_\-newsinfo} ({\bf newsInfo} newsinfo)
\begin{DoxyCompactList}\small\item\em 更新对象 \item\end{DoxyCompactList}\item 
bool {\bf Del\_\-newsinfo} ({\bf newsInfo} newsinfo)
\begin{DoxyCompactList}\small\item\em 删除记录 \item\end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{成员函数文档}
\index{DAO::newsinfoDao@{DAO::newsinfoDao}!Add\_\-newsinfo@{Add\_\-newsinfo}}
\index{Add\_\-newsinfo@{Add\_\-newsinfo}!DAO::newsinfoDao@{DAO::newsinfoDao}}
\subsubsection[{Add\_\-newsinfo}]{\setlength{\rightskip}{0pt plus 5cm}bool DAO.newsinfoDao.Add\_\-newsinfo (
\begin{DoxyParamCaption}
\item[{{\bf newsInfo}}]{ newsinfo}
\end{DoxyParamCaption}
)}\label{class_d_a_o_1_1newsinfo_dao_a349de326ffb436be5cad9676b22a63d5}


添加新纪录 


\begin{DoxyParams}{参数}
{\em newsinfo} & 实体\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}

\end{DoxyReturn}
\index{DAO::newsinfoDao@{DAO::newsinfoDao}!Del\_\-newsinfo@{Del\_\-newsinfo}}
\index{Del\_\-newsinfo@{Del\_\-newsinfo}!DAO::newsinfoDao@{DAO::newsinfoDao}}
\subsubsection[{Del\_\-newsinfo}]{\setlength{\rightskip}{0pt plus 5cm}bool DAO.newsinfoDao.Del\_\-newsinfo (
\begin{DoxyParamCaption}
\item[{{\bf newsInfo}}]{ newsinfo}
\end{DoxyParamCaption}
)}\label{class_d_a_o_1_1newsinfo_dao_a62fcbc8ab7478c876f92ee020aff19f9}


删除记录 


\begin{DoxyParams}{参数}
{\em newsinfo} & 实体\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}

\end{DoxyReturn}
\index{DAO::newsinfoDao@{DAO::newsinfoDao}!FindAllByPage\_\-newsinfo@{FindAllByPage\_\-newsinfo}}
\index{FindAllByPage\_\-newsinfo@{FindAllByPage\_\-newsinfo}!DAO::newsinfoDao@{DAO::newsinfoDao}}
\subsubsection[{FindAllByPage\_\-newsinfo}]{\setlength{\rightskip}{0pt plus 5cm}IList$<${\bf newsInfo}$>$ DAO.newsinfoDao.FindAllByPage\_\-newsinfo (
\begin{DoxyParamCaption}
\item[{string}]{ start, }
\item[{string}]{ limit, }
\item[{string}]{ conditions}
\end{DoxyParamCaption}
)}\label{class_d_a_o_1_1newsinfo_dao_aac78a8d5af557c02dcae47b33ec44434}


根据条件查找相应记录，并实现分页 


\begin{DoxyParams}{参数}
{\em start} & 开始记录号\\
\hline
{\em limit} & 分页大小\\
\hline
{\em conditions} & 查找条件\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}

\end{DoxyReturn}
\index{DAO::newsinfoDao@{DAO::newsinfoDao}!FindById\_\-newsinfo@{FindById\_\-newsinfo}}
\index{FindById\_\-newsinfo@{FindById\_\-newsinfo}!DAO::newsinfoDao@{DAO::newsinfoDao}}
\subsubsection[{FindById\_\-newsinfo}]{\setlength{\rightskip}{0pt plus 5cm}{\bf newsInfo} DAO.newsinfoDao.FindById\_\-newsinfo (
\begin{DoxyParamCaption}
\item[{int}]{ id}
\end{DoxyParamCaption}
)}\label{class_d_a_o_1_1newsinfo_dao_a044112b4d108d0e58ba4f399c83d7a78}


根据id查找相应的一条记录 


\begin{DoxyParams}{参数}
{\em id} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}

\end{DoxyReturn}
\index{DAO::newsinfoDao@{DAO::newsinfoDao}!FindNewsinfoByClassify@{FindNewsinfoByClassify}}
\index{FindNewsinfoByClassify@{FindNewsinfoByClassify}!DAO::newsinfoDao@{DAO::newsinfoDao}}
\subsubsection[{FindNewsinfoByClassify}]{\setlength{\rightskip}{0pt plus 5cm}IList$<${\bf newsInfo}$>$ DAO.newsinfoDao.FindNewsinfoByClassify (
\begin{DoxyParamCaption}
\item[{string}]{ classify}
\end{DoxyParamCaption}
)}\label{class_d_a_o_1_1newsinfo_dao_ad52c02c2de2322191ff0adb70a27e7ac}


根据类别查找出前6条记录，在首页桌面显示 


\begin{DoxyParams}{参数}
{\em classify} & 类别\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}

\end{DoxyReturn}
\index{DAO::newsinfoDao@{DAO::newsinfoDao}!GetCount\_\-newsinfo@{GetCount\_\-newsinfo}}
\index{GetCount\_\-newsinfo@{GetCount\_\-newsinfo}!DAO::newsinfoDao@{DAO::newsinfoDao}}
\subsubsection[{GetCount\_\-newsinfo}]{\setlength{\rightskip}{0pt plus 5cm}string DAO.newsinfoDao.GetCount\_\-newsinfo (
\begin{DoxyParamCaption}
\item[{string}]{ conditions}
\end{DoxyParamCaption}
)}\label{class_d_a_o_1_1newsinfo_dao_a1ca76a3546b08e7c29355ad0df7ff9c7}


查找符合条件记录的总条数，共分页使用 


\begin{DoxyParams}{参数}
{\em limit} & \\
\hline
{\em conditions} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}

\end{DoxyReturn}
\index{DAO::newsinfoDao@{DAO::newsinfoDao}!Update\_\-newsinfo@{Update\_\-newsinfo}}
\index{Update\_\-newsinfo@{Update\_\-newsinfo}!DAO::newsinfoDao@{DAO::newsinfoDao}}
\subsubsection[{Update\_\-newsinfo}]{\setlength{\rightskip}{0pt plus 5cm}bool DAO.newsinfoDao.Update\_\-newsinfo (
\begin{DoxyParamCaption}
\item[{{\bf newsInfo}}]{ newsinfo}
\end{DoxyParamCaption}
)}\label{class_d_a_o_1_1newsinfo_dao_a07b3842c26708af8942491285e5518a4}


更新对象 


\begin{DoxyParams}{参数}
{\em newsinfo} & 实体\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}

\end{DoxyReturn}


该类的文档由以下文件生成：\begin{DoxyCompactItemize}
\item 
D:/Project/1101/DAO/newsinfoDao.cs\end{DoxyCompactItemize}
